create folder counter
create besucher.txt 
upload useronline.php and guest.php and edit them
add this cod to your main.php page

$szamlalo_File = "counter/".date("Ymd").".txt"; 
 
if (file_exists($szamlalo_File)) { 
$szamlalo_fp = fopen($szamlalo_File,"r"); 
$szamlalo_num = fread($szamlalo_fp, filesize($szamlalo_File)); 
fclose($szamlalo_fp); 
} 
 
$szamlalo_num=$szamlalo_num+1; 
$szamlalo_fp = fopen($szamlalo_File,"w"); 
fwrite($szamlalo_fp, $szamlalo_num, 10); 
fclose($szamlalo_fp); 
 
 
$counter_array = file("counter.dat");
$all = $counter_array[0]+1;
$fp = @fopen("counter.dat","wb");
@fputs($fp,$all);
@fclose($fp); 
 
Visit number: $all
Visits today $szamlalo_num
Online <a href=\"guest.php\">$anzahl</a>
